package com.sp.scmdb.bean;

public class AreaBean extends PageBean {
	private String id;
	private String name;
	private String type;
	private String readers;
	private String readerID;
	private Integer areaX;
	private Integer areaY;
	private Integer empCount;
	private Integer timeLength;
	private String typeName;
	private String phone;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getReaders() {
		return readers;
	}

	public void setReaders(String readers) {
		this.readers = readers;
	}

	public Integer getAreaX() {
		return areaX;
	}

	public void setAreaX(Integer areaX) {
		this.areaX = areaX;
	}

	public Integer getAreaY() {
		return areaY;
	}

	public void setAreaY(Integer areaY) {
		this.areaY = areaY;
	}

	public String getReaderID() {
		return readerID;
	}

	public void setReaderID(String readerID) {
		this.readerID = readerID;
	}	

	public Integer getEmpCount() {
		return empCount;
	}

	public void setEmpCount(Integer empCount) {
		this.empCount = empCount;
	}

	public Integer getTimeLength() {
		return timeLength;
	}

	public void setTimeLength(Integer timeLength) {
		this.timeLength = timeLength;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((areaX == null) ? 0 : areaX.hashCode());
		result = prime * result + ((areaY == null) ? 0 : areaY.hashCode());
		result = prime * result
				+ ((empCount == null) ? 0 : empCount.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		result = prime * result
				+ ((readerID == null) ? 0 : readerID.hashCode());
		result = prime * result + ((readers == null) ? 0 : readers.hashCode());
		result = prime * result
				+ ((timeLength == null) ? 0 : timeLength.hashCode());
		result = prime * result + ((type == null) ? 0 : type.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AreaBean other = (AreaBean) obj;
		if (areaX == null) {
			if (other.areaX != null)
				return false;
		} else if (!areaX.equals(other.areaX))
			return false;
		if (areaY == null) {
			if (other.areaY != null)
				return false;
		} else if (!areaY.equals(other.areaY))
			return false;
		if (empCount == null) {
			if (other.empCount != null)
				return false;
		} else if (!empCount.equals(other.empCount))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		if (readerID == null) {
			if (other.readerID != null)
				return false;
		} else if (!readerID.equals(other.readerID))
			return false;
		if (readers == null) {
			if (other.readers != null)
				return false;
		} else if (!readers.equals(other.readers))
			return false;
		if (timeLength == null) {
			if (other.timeLength != null)
				return false;
		} else if (!timeLength.equals(other.timeLength))
			return false;
		if (type == null) {
			if (other.type != null)
				return false;
		} else if (!type.equals(other.type))
			return false;
		return true;
	}
	
}
